function DialogAddTask(doc, container, width, height, user, date, options, data) {
  this._doc = doc;
  this._container = container;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;
  this._unique = MiscUtils.unique();
  this._createElements();
  this._gui = AbsDialogAddTask.gui(this._unique);
};

DialogAddTask.prototype._createElements = function() {
  var table, tr, td;
  
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.style.width = '740px';
  table.style.marginTop = '10px';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.height = '24px';
  td.style.width = '85px';
  td.style.fontWeight = 'bold';
  td.appendChild(document.createTextNode('Branch'));
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  var user = document.createElement('select');
  user.style.width = '154px';
  user.style.height = '22px';
  user.style.marginBottom = '4px';
  user.id = this._unique + '_branch_select';
  td.appendChild(user);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.height = '24px';
  td.style.width = '85px';
  td.style.fontWeight = 'bold';
  td.appendChild(document.createTextNode('User'));
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  var user = document.createElement('select');
  user.style.width = '154px';
  user.style.height = '22px';
  user.style.marginBottom = '4px';
  user.id = this._unique + '_user_select';
  td.appendChild(user);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.height = '24px';
  td.style.width = '85px';
  td.style.fontWeight = 'bold';
  td.appendChild(document.createTextNode('Deadline'));
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  var dlinput = DOMUtils.createInput('', '', 'text', '', null);
  dlinput.style.width = '150px';
  dlinput.style.marginBottom = '3px';
  dlinput.id = this._unique + '_deadline_text';
  td.appendChild(dlinput);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.height = '24px';
  td.style.width = '85px';
  td.style.fontWeight = 'bold';
  td.style.verticalAlign = 'top';
  td.style.paddingTop = '5px';
  td.appendChild(document.createTextNode('Content'));
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  var text = document.createElement('textarea');
  text.style.width = '650px';
  text.style.height = '65px';
  text.style.marginBottom = '3px';
  text.style.overflowY = 'hidden';
  text.id = this._unique + '_content_textarea';
  td.appendChild(text);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.height = '24px';
  td.style.width = '85px';
  td.style.fontWeight = 'bold';
  td.style.padding = '0 3px 0 0px';
  td.style.whiteSpace = 'nowrap';
  td.appendChild(document.createTextNode('Customer No.'));
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  var cninput = DOMUtils.createInput('', '', 'text', '', null);
  cninput.style.width = '150px';
  cninput.id = this._unique + '_cusNumber_text';
  td.appendChild(cninput);
  
};